<%@ page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="cbsPartInfoList" checkbox="true" fitColumns="true" title="零件信息表" actionUrl="cbsPartInfoController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="ID"  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="零件号"  field="partNo"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="英文描述"  field="englishDes"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="中文描述"  field="chineseDes"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属商品分类" field="commodity" dictionary="<%=StaticValue.CLASSIFY %>" queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="终端价"  field="terminalPrice"    queryMode="single"   width="120"></t:dgCol>
   <t:dgCol title="院线价"  field="cinemaPrice"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="中影优惠价"  field="cfgcPrice"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="微信优惠价"  field="wechatPrice"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="横店优惠价"  field="hdPrice"    queryMode="single"  width="120"></t:dgCol>
  <%--  <t:dgCol title="销售单位"  field="marketUnit"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="微信推广名"  field="wechatName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="分类"  field="sort"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="适用机型"  field="type"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="详细说明"  field="details"   query="true" queryMode="single"  width="120"></t:dgCol> --%>
   <t:dgCol title="createName"  field="createName"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="createBy"  field="createBy"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="createDate"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateName"  field="updateName"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateBy"  field="updateBy"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateDate"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="是否可售"  field="canSale" dictionary="trueOfFlaseNum"  query="true" queryMode="single" width="80"></t:dgCol>
   <t:dgCol title="是否微信可售"  field="canWxSale" dictionary="trueOfFlaseNum"  query="true" queryMode="single" width="80"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt title="查看配件信息" funname="goView(id)"></t:dgFunOpt>
   <%-- <t:dgDelOpt title="删除" url="cbsPartInfoController.do?doDel&id={id}" /> --%>
   <t:dgToolBar title="新增" operationCode="addPartInfo" icon="icon-add" url="cbsPartInfoController.do?goAdd" funname="add" width="800" height="490"></t:dgToolBar>
   <t:dgToolBar title="编辑" operationCode="partinfoedit" icon="icon-edit" url="cbsPartInfoController.do?goUpdate1" width="800" height="490" funname="update"></t:dgToolBar>
   <t:dgToolBar title="CSA编辑" operationCode="csamanager" icon="icon-edit" url="cbsPartInfoController.do?goUpdate2" width="800" height="490" funname="update"></t:dgToolBar>
    <%--  <t:dgToolBar title="批量删除"  icon="icon-remove" url="cbsPartInfoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="cbsPartInfoController.do?goUpdate" funname="detail"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar> --%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/buss/partinfo/cbsPartInfoList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#cbsPartInfoListtb").find("input[name='createDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsPartInfoListtb").find("input[name='createDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsPartInfoListtb").find("input[name='updateDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsPartInfoListtb").find("input[name='updateDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 function goView(id){
     var url = "cbsPartInfoController.do?goUpdate&id="+id;
     createdetailwindow("配材信息查看",url, 800,480);
 }
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'cbsPartInfoController.do?upload', "cbsPartInfoList");
}

//导出
function ExportXls() {
	JeecgExcelExport("cbsPartInfoController.do?exportXls","cbsPartInfoList");
}
//模板下载
function ExportXlsByT() {
	JeecgExcelExport("cbsPartInfoController.do?exportXlsByT","cbsPartInfoList");
}
 </script>